﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Cache.aspx.cs" Inherits="UI_Cache" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Cache Processing</title>
</head>
<body>
    <form id="form1" runat="server">
    <ext:PageManager ID="PageManager1" runat="server" />
    <ext:Panel ID="Panel1" BodyPadding="5px" runat="server" EnableBackgroundColor="true"
        Title="CACHE 管 理" AutoWidth="true">
        <Items>
            <ext:SimpleForm ID="SimpleForm1" runat="server" EnableBackgroundColor="true" ShowBorder="False"
                ShowHeader="False">
                <Items>
                    <ext:TextBox ID="lblcachecount" Label="缓存数目" runat="server">
                    </ext:TextBox>
                    <ext:TextBox ID="lblnc" Label="占用内存" runat="server">
                    </ext:TextBox>
                    <ext:Button runat="server" CssStyle="margin-right:5px;float:left;" ID="Button1" Text="确定重启网站"
                        OnClick="btnUnload_Click" />
                    <ext:Button runat="server" CssStyle="margin-right:5px;float:left;" ID="Button2" Text="确定清空缓存"
                        OnClick="btnClear_Click" />
                    <ext:Timer ID="Timer1" Interval="15"  OnTick="Timer1_Tick"  
                        runat="server">
                    </ext:Timer>
                </Items>
            </ext:SimpleForm>
            <ext:Grid ID="Grid1" Title="缓存条目列表" ShowBorder="true" ShowHeader="true" AutoHeight="true"
                runat="server" EnableRowNumber="True" EnableTextSelection="true" AllowPaging="false"
                ForceFitAllTime="true">
                <Columns>
                    <ext:BoundField DataField="ckey" DataFormatString="{0}" ExpandUnusedSpace="True"
                        HeaderText="Key" />
                    <ext:BoundField DataField="cvalue" DataFormatString="{0}" ExpandUnusedSpace="True"
                        HeaderText="Value" />
                </Columns>
            </ext:Grid>
        </Items>
    </ext:Panel>
    </form>
</body>
</html>
